﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    /// <summary>
    /// 盘点计划物资明细信息  
    /// </summary>
    public class TInventorymaterialdetailsdto
    {
        public int Id { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string batch { get; set; }
        /// <summary>
        /// 归属部门名称
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 物资编码
        /// </summary>
        public string materialCode { get; set; }
        /// <summary>
        /// 物资名称
        /// </summary>
        public string materialName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string materialNorms { get; set; }
        /// <summary>
        /// 关联的盘点计划id
        /// </summary>
        public int planId { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public decimal stockCount { get; set; }
        /// <summary>
        /// 库存明细id
        /// </summary>
        public int stockId { get; set; }
        /// <summary>
        /// 存放库位
        /// </summary>
        public string storeLocationCode { get; set; }
        /// <summary>
        /// 存放库位描述
        /// </summary>
        public string storeLocationRemark { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string storeName { get; set; }
        //仓位id
        public int storeId { get; set; }
        /// <summary>
        /// 仓位编码
        /// </summary>
        public int storeLocationId { get; set; }
        /// <summary>
        /// 盘点结果
        /// </summary>
        public string checkResult { get; set; }
        /// <summary>
        /// 实际盘点数量
        /// </summary>
        public int checkAmount { get; set; }
        /// <summary>
        /// 期末结束数量
        /// </summary>
        public int periodSurplus { get; set; }
        /// <summary>
        /// 盈亏数量
        /// </summary>
        public int profitLostAmount { get; set; }
        /// <summary>
        /// 质量状态1.良好，2.损坏，3.报废
        /// </summary>
        public int qualityStatus { get; set; }
        /// <summary>
        ///监盘人id
        /// </summary>
        public int supervisorId { get; set; }

        /// <summary>
        /// 提交人id
        /// </summary>
        public int userId { get; set; }

    }
    public class PandianDanhaodto
    {
        [Required]
      public  List<TInventorymaterialdetailsdto> Items { get; set; }
        /// <summary>
        /// 盘点计划单id
        /// </summary>
        /// 
        [Required]
        public int planId { get; set; }
        /// <summary>
        /// 盘点计划单号
        /// </summary>
        [Required]
        public string planNumber { get; set; }
        public int userid { get; set; }
    }   
}
